home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Snippets / FindIcon / ⁄* about this code *⁄.note next >
Encoding:
Text File  |  1994-01-05  |  900 b   |  22 lines  |  [TEXT/KAHL]

  1. These routines find an icon family for an arbitrary object in the
  2. Mac file system.  It is intended to be the same icon displayed by
  3. the Finder, but there are a bunch of exceptions and I can't swear
  4. I found them all.  The main entry point is Find_icon, but if you have
  5. extra knowledge of what sort of object you have in hand, you may want
  6. to call one of the more specific routines.  You may also want to call
  7. Get_icon_file_name in place of hard-coding the string "\pIcon\r"
  8. as the name of custom folder icon files.
  9.  
  10. There is no use of global or static variables, so the code can be
  11. used in applications or code resources without concern about A4/A5
  12. issues.
  13.  
  14. This code is provided to the public without charge by James W. Walker.
  15. I only ask that if you find errors or think of improvements, you
  16. let me know about them.
  17.  
  18. e-mail:  JWWalker@AOL.com, 76367.2271@compuserve.com
  19.  
  20. Wednesday, January 5, 1994
  21.  
  22.